#include "jundge.h"
#define SEND_MAX_LEN 50
uint8_t My_Queue[500]={0};
QUEUE8_t Queue_Date;
ext_draw_crosshair_t Draw_CH;
ex_sendcustom_t SendCustom;
uint8_t Analysis[500]={0};
static uint8_t ClienTxBuffer[SEND_MAX_LEN]={0};
Jundge_Power_Heat_Data_t jundge_power_heat_data_t={0};
void Jundge_Analysis()
{
	static uint32_t length=0;
	length=QUEUE_PacketOut(&Queue_Date,Analysis,QUEUE_PacketLengthGet(&Queue_Date));
					for(int i=0;i<length;i++)
				if(Analysis[i]==0xa5)
						if(verify_crc8((uint8_t*)&Analysis[i],5))//byte
						{
							
							if((Analysis[i+6]<<8|Analysis[i+5])==0x0202)
							{
								if(verify_crc16((uint8_t*)&Analysis[i],23))
								{
									for(int j=0;j<14;j++)
									jundge_power_heat_data_t.save[j]=Analysis[i+5+2+j];
									
								}
							}
						}
}

